ArcFM Responder Mobile Developer Guide
HasValue<TProp> Method






Returns bool if the property has been populated
Syntax
'Declaration
 
Public Function HasValue(Of TProp)( _
   ByVal expression As System.Linq.Expressions.Expression(Of Func(Of T,TProp)) _
) As System.Boolean
'Usage
 
Dim instance As ResponderObjectBaseGeneric(Of T)
Dim expression As System.Linq.Expressions.Expression(Of Func(Of T,TProp))
Dim value As System.Boolean
 
value = instance.HasValue(Of TProp)(expression)
public System.bool HasValue<TProp>( 
   System.Linq.Expressions.Expression<Func<T,TProp>> expression
)
public function HasValue( 
    expression: System.Linq.Expressions.Expression
): System.Boolean; 
public function HasValue( 
   expression : System.Linq.Expressions.Expression
) : System.boolean;
public: System.bool HasValue<TProp>( 
   System.Linq.Expressions.Expression<Func<T*,TProp*>*>* expression
) 
public:
System.bool HasValuegeneric<typename TProp>
( 
   System.Linq.Expressions.Expression<Func<T^,TProp^>^>^ expression
) 

Parameters

expression

Type Parameters

TProp

Return Value

True if the value of the property is not empty or null
Remarks
use as follows: var object = new AlertsObject(row); bool hasValue = object.HasValue(o=>o.Property);
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

ResponderObjectBaseGeneric<T> Class
ResponderObjectBaseGeneric<T> Members

Send Feedback